<?php
$this->renderPartial('application.modules.member.views.main.info');
$form = $this->beginWidget('CActiveForm', array(
            'id' => 'epay-form',
            'enableClientValidation' => true,
            'clientOptions' => array(
                'validateOnSubmit' => true,
            ),
        ));
//echo $form->errorSummary($model);
?>
<br />
<h1>Payment Online</h1>
<?php echo $form->errorSummary($model,'Error:','',  array('style' => 'color:#a42a27;')); ?>
<?
$produk = Yii::app()->user->getFlash('produk');
$id_pelanggan = Yii::app()->user->getFlash('idpelanggan');
$jumlah_bayar = Yii::app()->user->getFlash('jumlahbayar');
$total_bayar = Yii::app()->user->getFlash('total_bayar');
$fee = Yii::app()->user->getFlash('fee');
?>
<div class="add">
  
    <table cellpadding="0" cellspacing="0" border="0">
      <tr class="title">
        <th colspan="2" style="text-align:left;"><strong>Info Tagihan</strong></th>
      </tr>
      <tr>
        <th width="100" valign="top">Produk</th>
        <td>
            <?php echo Yii::app()->user->getFlash('product_name'); ?>
            <input type="hidden" name="transaction_ppob_produk" value="<?php echo $produk; ?>">
            <input type="hidden" name="transaction_ppob_idpelanggan" value="<?php echo $id_pelanggan; ?>">
            <input type="hidden" name="transaction_ppob_jumlahbayar" value="<?php echo $jumlah_bayar; ?>">
            <input type="hidden" name="transaction_ppob_fee" value="<?php echo $fee; ?>">
            <input type="hidden" name="transaction_ppob_total_bayar" value="<?php echo $total_bayar; ?>">
            <input type="hidden" name="product_id" value="<?php echo Yii::app()->user->getFlash('product_id'); ?>">
        </td>
        
      </tr>
      <tr>
        <th width="100" valign="top">Nomer Rekening</th>
        <td>  <?php echo $id_pelanggan; ?></td>
      </tr>
      <tr>
        <th width="100" valign="top">Nama</th>
        <td>  <?php echo Yii::app()->user->getFlash('namapelanggan'); ?></td>
      </tr>
      <tr>
        <th width="100" valign="top">Tagihan</th>
        <td>  <?php echo number_format(Yii::app()->user->getFlash('jumlahtagihan')); ?></td>
      </tr>
      <tr>
        <th width="100" valign="top">Biaya Admin</th>
        <td>  <?php echo number_format($fee); ?></td>
      </tr>
      <tr>
        <th width="100" valign="top">Jumlah Tagihan</th>
        <td>  <?php echo number_format($total_bayar); ?></td>
      </tr>
<!--      <tr class="title">
        <th colspan="2" style="text-align:left;"><strong>VALIDASI PIN</strong></th>
      </tr>
      <tr>
        <th>PIN</th>
        <td><?php echo $form->textField($model, 'serial_pin'); ?> </td>
      </tr>
      <tr>
        <th>&nbsp;</th>
        <td><input type="submit" name="submit" value="Proses" class="button"></td>
      </tr>-->
    </table>
</div>
<?php
$this->endWidget();
?>
